package com.ms.service.module.zone.db;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.xpec.c4.db.model.log.basic.BaseGameInfoLogModel;


/**
 * 全館彩金單筆交易log
 * @author TW15012
 *
 */

@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@Table(name = "game_jackpottrancscationlog")
public class GameJackPotTranscationLog extends BaseGameInfoLogModel implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 938882155425656483L;

	/**座位編號**/
	private String seatId;

	/**遊戲類別**/
	private String gametype;
	
	/**館別**/
	private String halltype;
	
	/**player guid**/
	private String playerid;
	
	/**玩家匿稱**/
	private String name;
	
	/**舊彩金**/
	private BigDecimal oldjackpotmoney;
	
	/***舊歷史彩金**/
	private BigDecimal oldjackpothistory;
	
	/***舊歷史累積彩金***/
	private BigDecimal oldjackpothistorytotal;
	
	/**當前彩金**/
	private BigDecimal jackpotmoney;
	
	/**當前歷史彩金**/
	private BigDecimal jackpothistory;
	
	/**當前歷史累積彩金**/
	private BigDecimal jackpothistorytotal;
	
	/**創建時間**/
	private long create_time;
	
	/**押注金額**/
	private long betmoney;
	
	/**幸運金金額**/
	private long luckymoney;
	
	/**總押注金額**/
	private long totalbet;
	
	/**是否鎖定中彩**/
	private int isLock;
	
	/**是否中隱藏jp**/
	private boolean ishjp;
	
	/**
	 * jp隨機值
	 */
	private BigDecimal jackpotrand;
	
	@Column(precision = 19, scale = 2 , columnDefinition="DECIMAL(19,2) default 0.0")
	public BigDecimal getJackpotrand() {
		return jackpotrand;
	}

	public void setJackpotrand(BigDecimal jackpotrand) {
		this.jackpotrand = jackpotrand;
	}
	
	@Column(name="ishjp" , nullable = false , columnDefinition="BOOLEAN default 0")
	public boolean getIshjp() {
		return ishjp;
	}

	public void setIshjp(boolean ishjp) {
		this.ishjp = ishjp;
	}

	@Column(precision = 19, scale = 2 , columnDefinition="DECIMAL(19,2) default 0.0")
	public BigDecimal getJackpothistorytotal() {
		return jackpothistorytotal;
	}

	public void setJackpothistorytotal(BigDecimal jackpothistorytotal) {
		this.jackpothistorytotal = jackpothistorytotal;
	}
	
	@Column(precision = 19, scale = 2 , columnDefinition="DECIMAL(19,2) default 0.0")
	public BigDecimal getOldjackpothistorytotal() {
		return oldjackpothistorytotal;
	}

	public void setOldjackpothistorytotal(BigDecimal oldjackpothistorytotl) {
		this.oldjackpothistorytotal = oldjackpothistorytotl;
	}
	public String getSeatId() {
		return seatId;
	}

	public void setSeatId(String seatId) {
		this.seatId = seatId;
	}

	public int getIsLock() {
		return isLock;
	}

	public void setIsLock(int isLock) {
		this.isLock = isLock;
	}

	public long getBetmoney() {
		return betmoney;
	}

	public void setBetmoney(long betmoney) {
		this.betmoney = betmoney;
	}

	public long getLuckymoney() {
		return luckymoney;
	}

	public void setLuckymoney(long luckymoney) {
		this.luckymoney = luckymoney;
	}

	public long getTotalbet() {
		return totalbet;
	}

	public void setTotalbet(long totalbet) {
		this.totalbet = totalbet;
	}

	public String getGametype() {
		return gametype;
	}

	public void setGametype(String gametype) {
		this.gametype = gametype;
	}

	public String getHalltype() {
		return halltype;
	}

	public void setHalltype(String halltype) {
		this.halltype = halltype;
	}

	public String getPlayerid() {
		return playerid;
	}

	public void setPlayerid(String playerid) {
		this.playerid = playerid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(precision = 19, scale = 2 , columnDefinition="DECIMAL(19,2) default 0.0")
	public BigDecimal getOldjackpotmoney() {
		return oldjackpotmoney;
	}

	public void setOldjackpotmoney(BigDecimal oldjackpotmoney) {
		this.oldjackpotmoney = oldjackpotmoney;
	}

	@Column(precision = 19, scale = 2 , columnDefinition="DECIMAL(19,2) default 0.0")
	public BigDecimal getOldjackpothistory() {
		return oldjackpothistory;
	}

	public void setOldjackpothistory(BigDecimal oldjackpothistory) {
		this.oldjackpothistory = oldjackpothistory;
	}

	@Column(precision = 19, scale = 2 , columnDefinition="DECIMAL(19,2) default 0.0")
	public BigDecimal getJackpotmoney() {
		return jackpotmoney;
	}

	public void setJackpotmoney(BigDecimal jackpotmoney) {
		this.jackpotmoney = jackpotmoney;
	}

	@Column(precision = 19, scale = 2 , columnDefinition="DECIMAL(19,2) default 0.0")
	public BigDecimal getJackpothistory() {
		return jackpothistory;
	}

	public void setJackpothistory(BigDecimal jackpothistory) {
		this.jackpothistory = jackpothistory;
	}

	public long getCreate_time() {
		return create_time;
	}

	public void setCreate_time(long create_time) {
		this.create_time = create_time;
	}
}
